import java.util.Deque;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;

/**
 * @author : zzr
 * @description :双端队列测试
 * @date :
 */
public class Test3 {
    public static void main(String[] args) {
        Deque<Integer> stack = new LinkedList<>();
        Deque<Integer> deque = new LinkedList<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        System.out.println(stack.poll());
        deque.offer(1);
        deque.offer(2);
        deque.offer(3);
        System.out.println(deque.remove());
    }
}
